inline bool People::IsRetired() const 
{
	return m_history.IsRetired();
}

inline bool People::IsPlayer() const
{
	return m_history.IsPlayer();
}

inline bool People::IsTrainer() const
{
	return m_history.IsTrainer();
}

inline int People::GetStatus() const
{
	return m_history.GetStatus();
}

inline int People::GetId() const
{
	return m_id;
}

inline const PeopleSkills& People::GetSkills() const
{
	return m_skill;
}

inline const PeopleHistory& People::GetHistory() const
{
	return m_history;
}

inline const STL::string& People::GetName() const
{
	return m_name;
}

inline int People::GetSalary() const
{
	DARIONLY(return m_salary);
	NOTDARIONLY(return static_cast<int>(GetContract()->m_salary));
}

inline int People::BuyValue() const
{
	DARIONLY(return m_salary * s_params.BUY_FACTOR);
	NOTDARIONLY(return GetContract()->BuyValue());
}

inline int People::SellValue() const
{
	DARIONLY(return m_salary * s_params.SELL_FACTOR);
	NOTDARIONLY(return GetContract()->SellValue());
}

inline void People::SetTeamID(const int i_teamID)
{
	m_teamID = i_teamID;
}

inline const int People::GetTeamID() const 
{
	return m_teamID;
}

inline const PlayerAvailability& People::GetAvailability() const
{
	return m_availability;
}

inline PlayerAvailability& People::GetAvailability()
{
	return m_availability;
}

inline const PeopleParams& People::GetParams()
{
	return People::s_params;
}

#ifndef DARIO
inline void People::SetContract(const unsigned int i_salary, const unsigned int i_years)
{
	m_contract.m_salary = i_salary;
	m_contract.m_years = i_years;
}

inline const Contract* const People::GetContract() const
{
	return &m_contract;
}

inline bool People::HasContract() const 
{
	return (m_contract.m_years > 0);
}
#endif

inline bool People::IsBusy() const
{
	return m_teamID != Utilities::INVALID_ID;
}
